package com.example.myapplication;

import android.content.Intent;
import android.media.Image;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

public class ShouYe extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_shou_ye);
        //找到ImageView
        ImageView imageBUtton1 = findViewById(R.id.imageButton1);
        //设置点击事件监听器
        imageBUtton1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(ShouYe.this, Jump1.class);
                // 启动目标 Activity
                startActivity(intent);
            }
        });


        ImageView imageButton2 = findViewById(R.id.imageButton2);
        // 设置第二个 ImageView 的点击事件监听器
        imageButton2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(ShouYe.this, Jump1.class);
                startActivity(intent);
            }
        });

        // 找到第三个 ImageView
        ImageView imageButton3 = findViewById(R.id.imageButton3);
        // 设置第三个 ImageView 的点击事件监听器
        imageButton3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(ShouYe.this, Jump1.class);
                startActivity(intent);
            }
        });


        ImageView Sign2 = findViewById(R.id.Sign2);
        // 设置望诊按钮
        Sign2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(ShouYe.this, Wangzhen.class);
                startActivity(intent);
            }
        });
    }
}